package cn.wolfcode.mapper;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    //    分页

    List<Role> selectLimit(QueryObject queryObject);


    void insertByIds(@Param("id") Long id, @Param("ids") Long ids);


    void deleteByRoleId(Long id);

    List selectByEmid(Long id);
}